package charactor;

import java.util.HashMap;
import java.util.Scanner;

/**
 * Created by MtRider on 2021/10/17 11:52
 */
public class numberTimes {
    public static void main(String[] args) {
        HashMap<String, Integer> map = new HashMap<>();
        Scanner input = new Scanner(System.in);
        int i = input.nextInt();
        String s = String.valueOf(i);
        char[] chars = s.toCharArray();
        for (char aChar : chars) {
            if(map.get(String.valueOf(aChar))==null){
                map.put(String.valueOf(aChar),1);
            }else{
                map.put(String.valueOf(aChar),map.get(String.valueOf(aChar))+1);
            }
        }
        System.out.println(map);
    }
}
